import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class h_1 {
    public static void main(String[] args) {
        ArrayList<String> arr=new ArrayList<>();
        Collections.addAll(arr,"张三,21", "李四,24", "丁真,26", "珍珠,27", "锐刻五,30");
        Map<String,Integer> map=new HashMap<>();
        for (String str:arr
        ) {
            String[] s=str.split(",");
            if(Integer.parseInt(s[1])>=24){
                map.put(s[0],Integer.parseInt(s[1]));
            }
        }
        System.out.println(map);

    }
}
